<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017\11\21 0021
 * Time: 9:46
 */

namespace frontend\controllers\base;
/**
基础控制器
 */
use yii\web\Controller;

class BaseController extends Controller{
    public function init(){
        $this->enableCsrfValidation = false;
    }
    public function  beforeAction($action){

        if(!parent::beforeAction($action)){
            return false;

        }
        return true;
    }


}

?>